package com.ruoyi.zhmk.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 门禁设备对象 zhmk_door_device
 * 
 * @author ruoyi
 * @date 2021-06-24
 */
public class ZhmkDoorDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 门禁ID */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String name;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String position;

    /** IP地址 */
    @Excel(name = "IP地址")
    private String ip;

    /** 端口号 */
    @Excel(name = "端口号")
    private String port;

    /** 设备ID */
    @Excel(name = "设备ID")
    private String deviceId;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 进出类型 */
    @Excel(name = "进出类型")
    private Integer inoutType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setPort(String port) 
    {
        this.port = port;
    }

    public String getPort() 
    {
        return port;
    }
    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setInoutType(Integer inoutType) 
    {
        this.inoutType = inoutType;
    }

    public Integer getInoutType() 
    {
        return inoutType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("position", getPosition())
            .append("ip", getIp())
            .append("port", getPort())
            .append("deviceId", getDeviceId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("inoutType", getInoutType())
            .toString();
    }
}
